From: Adel Gadllah Date: Fri, 30 Sep 2011 16:43:24 +0000 (+0200) Subject: layout: Fix setting fullscreen for screen sized windows X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7529 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b43dcb887673b86833ee5b247da436debd3519c5;p=gnome-shell.git layout: Fix setting fullscreen for screen sized windows We have to set the flag for all monitors in that case. --- diff --git a/js/ui/layout.js b/js/ui/layout.js index a50c9f222..4e239e6e0 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -826,10 +826,15 @@ Chrome.prototype = { } if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) { // Check whether the window is screen sized - if (window.x == 0 && window.y == 0 && + let isScreenSized = + (window.x == 0 && window.y == 0 && window.width == global.screen_width && - window.height == global.screen_height) - monitor.inFullscreen = true; + window.height == global.screen_height); + + if (isScreenSized) { + for (let i = 0; i < this._monitors.length; i++) + this._monitors[i].inFullscreen = true; + } // Or whether it is monitor sized let monitor = this._findMonitorForWindow(window);